@import "iconfont";

@mixin lamp-clamp($line) {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: $line;
  /* autoprefixer: ignore next */
  -webkit-box-orient: vertical;
  word-break: break-all;
}

@each $size in $font-size-arr {
  .font-#{$size} {
    font-size: #{$size}px;
  }
}

.slider::-webkit-scrollbar,
.slider::-webkit-scrollbar-track-piece {
  width: 0;
  background: transparent;
  border: 0;
  transition: width .3s;
}

.slider:hover::-webkit-scrollbar,
.slider:hover::-webkit-scrollbar-track-piece {
  width: 3px;
}

::-webkit-scrollbar,
::-webkit-scrollbar-track-piece {
  width: 10px;
  background: transparent;
  border: 0;
}

::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, .2);
  border: 0;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #aaa8a8;
}

button {
  background: transparent;
  outline: none;
  border: none;
  cursor: pointer;
  transition: all .1s;
}
button + button {
  margin-left: 20px;
}

ul,
h2,
body, html {
  margin: 0;
  padding: 0;
}
h1, h2, h3, h4, h5, h6,
ol, ul, dl {
  margin-bottom: 0 !important;
}
body {
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  color: #333;
  background-color: transparent !important;
}

label {
  //font-weight: 700;
}

html {
  background: #f2f2f2;
}
#app {
  height: 100%;
}
#app,
body,
html {
  min-height: 100%;
  box-sizing: border-box;
}

ul {
  list-style: none;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0 !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus{
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.mlr-30 {
  margin-left: 30px;
  margin-right: 30px;
}

.mt-16 {
  margin-top: 16px !important;
}
.mb-16 {
  margin-bottom: 16px !important;
}
.ml-16 {
  margin-left: 16px;
}
.mr-16 {
  margin-right: 16px;
}

.ml-10 {
  margin-left: 10px;
}
.ml-20 {
  margin-left: 20px !important;
}

.plr-30 {
  padding-left: 30px;
  padding-right: 30px;
}

.text--right {
  text-align: right;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

.flex-col {
  display: flex;
  flex-direction: column !important;
}

.flex-row {
  display: flex;
  flex-direction: row !important;
}
.flex-center {
  align-items: center !important;
  justify-content: center !important;
}
.flex-1 {
  flex: 1;
}
.ellipsis-1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.ellipsis-2 {
  @include lamp-clamp(2);
}

.ellipsis-3 {
  @include lamp-clamp(3);
}

.ellipsis-4 {
  @include lamp-clamp(4);
}
.g-nav ~ .card {
  margin-top: 0;
}
.card {
  border-radius: 8px;
  background: #fff;
  padding: 16px 32px;
  margin: 10px;
}

svg.delete-icon {
  position: relative;
  top: 4px;
  cursor: pointer;
  fill: #{$primary-color} !important;
}
svg.delete-icon:focus,
svg.delete-icon:hover {
  fill: #{$primary-hover-color} !important;
}
svg.delete-icon:active {
  fill: #{$primary-active-color} !important;
}

.inline-block {
  display: inline-block;
}

#nprogress {
  pointer-events: none;
  .bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    width: 100%;
    height: 2px;
    background-color: #1890ff;
    opacity: 0.75;
  }
}
